import http from "./http";

const xunjian = "";
const wanggehua = "";

//测试登录
export const testLogin = (data) => http.post(`/sys/mLogin`, data);
//活动列表
export const list = (data) => http.get(`/activity/api/newest`, data);
//活动报名人列表
export const activityApplyList = (data) => http.get(`/apply/api/list`, data);
//资讯列表
export const informationList = (data) =>
  http.get(`/cms/api/learning/list`, data);

//校友组织
export const orgList = (data) => http.get(`/alumni/api/org/list`, data);

//实名注册
export const register = (data) => http.post(`/biz/api/register`, data);

// /// 用户登录
// export const postLogin = (data) => http.post(`${wanggehua}/sys/mLogin`, data);

// //登出
// export const logout = (data) => http.post(`${wanggehua}/sys/logout`, data);

// /*******************文章****************************************/
// //3.1. 三会一课/3.5. 主题党日
// export const homelist = (data) =>
//   http.get(`${wanggehua}/activity/api/home/list`, data);

// //3.1. 系统消息
// export const announcement = (data) =>
//   http.get(`${wanggehua}/biz/api/announcement/list`, data);
// //流动党员
// // export const learning = (data) => http.get(`${wanggehua}/cms/api/learning`, data);
// //3.2. 活动报名
// export const activitysignUp = (data) =>
//   http.post(`${wanggehua}/apply/api/signUp/add`, data);
// //3.3. 取消报名
// export const activitycancel = (data) =>
//   http.post(`${wanggehua}/apply/api/signUp/cancel`, data);
// //3.4. 活动详情
// export const activitydetails = (data) =>
//   http.get(`${wanggehua}/activity/api/details`, data);

// //3.8. 文章评论
// export const articlecomment = (data) =>
//   http.post(`${wanggehua}/cms/api/article/comment`, data);
// export const articleCommentList = (data) =>
//   http.get(`${wanggehua}/cms/api/article/comment/list`, data);
// export const articledetails = (data) =>
//   http.get(`${wanggehua}/cms/api/article`, data);
// //首页轮播图
// // export const indexBanner = (data) => http.get(`${wanggehua}/cms/api/learning/1541227315040141313`, data);
// export const indexBanner = (data) =>
//   http.get(`${wanggehua}/cms/api/section/list?code=A06`, data);

// //3.8. 单文件上传
// export const upload = (data) =>
//   http.get(`${wanggehua}/sys/uploadify/upload`, data);
// // export const img_upload = (data) => http.post(`${wanggehua}/sys/uploadify/upload`, data);

// /***********活动***************/
// //活动列表
// export const activityList = (data) =>
//   http.post(`${wanggehua}/activity/api/list`, data);
// export const activityHomeList = (data) =>
//   http.post(`${wanggehua}/activity/api/home/list`, data);
// export const activityNewest = (data) =>
//   http.get(`${wanggehua}/activity/api/newest`, data);
// export const activityDetails = (data) =>
//   http.get(`${wanggehua}/activity/api/details/`, data);
// export const activityComment = (data) =>
//   http.post(`${wanggehua}/evaluate/api/add`, data);
// export const activityAdd = (data) =>
//   http.post(`${wanggehua}/activity/api/add`, data); //新建活动
// export const activityTypes = (data) =>
//   http.get(`${wanggehua}/activity/api/types`, data);
// export const activitysignUpList = (data) =>
//   http.get(`${wanggehua}/apply/api/list`, data); //签到列表
// export const activitySignIn = (data) =>
//   http.post(`${wanggehua}/apply/api/signIn/add`, data); //活动签到
// export const activityAddRecords = (data) =>
//   http.put(`${wanggehua}/activity/api/record/add`, data); // 活动、会议记录添加

// //随手拍/代办列表
// export const recordList = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/queryRecordList`, data); //随手拍/代办列表
// //随手拍/代详情
// export const queryRecord = (data) =>
//   http.get(`${wanggehua}/andon/daiBanRecord/queryById`, data);
// //随手拍/代详情
// export const queryRecordByCode = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/queryRecordByCode`, data);
// //添加随手拍/代办
// export const addRecord = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/addRecord`, data);
// //随手拍/代办类型字典
// export const SSPDBdict = (data) =>
//   http.get(`${wanggehua}/api/errorType/queryTreeList`, data); //errorType=suishou/daiban
// //拒绝或者领取任务
// export const acceptOrRefuseMo = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/acceptOrRefuseMo`, data);
// //完成任务数据上传
// export const doRepairMo = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/doRepairMo`, data);
// //任务审核
// export const finishRepairMo = (data) =>
//   http.post(`${wanggehua}/api/andonRecord/finishRepairMo`, data);

// //公告分页查询
// export const announcementPage = (data) =>
//   http.get(`${wanggehua}/biz/api/announcement/list2`, data);
// export const announcementById = (data) =>
//   http.get(`${wanggehua}/sys/annountCement/queryById`, data);

// /******************/
// //个人信息
// export const myself = (data) =>
//   http.get(`${wanggehua}/personal/api/info/myself`, data);
// //积分排名
// export const scoreboard = (data) =>
//   http.get(`${wanggehua}/personal/api/integral/scoreboard`, data);

// /***************************************/
// //创建学习记录
// export const addLearningRecords = (data) =>
//   http.get(`${wanggehua}/cms/api/article/ready`, data);
// //学习主页内容
// export const learningIndexList = (data) =>
//   http.get(`${wanggehua}/cms/api/learning/list`, data);
// //我的学习记录
// export const myLearningRecords = (data) =>
//   http.get(`${wanggehua}/personal/api/learning/myself`, data);

// //提交意见反馈
// export const addFeedback = (data) =>
//   http.get(`${wanggehua}/cms/api/feedback/add`, data);
// //所有意见反馈
// export const feedbackList = (data) =>
//   http.get(`${wanggehua}/cms/api/feedback/list`, data);

// //我的意见反馈
// export const myFeedback = (data) =>
//   http.get(`${wanggehua}/cms/api/feedback/myself`, data);

// /**************巡检接口*************************/
// /**文件上传*/
// export const file_upload = (data) =>
//   http.post(`${xunjian}/api/uploadController.do?ajaxSaveFile`, data);

// /**巡检数据提交*/
// export const xunjian_submit = (data) =>
//   http.post(`${xunjian}/rest/inspectionController/doAdd`, data);

// /**巡检记录*/
// export const xunjian_record = (data) =>
//   http.post(`${xunjian}/rest/inspectionController/inspectionPointList`, data);

// /**路线巡检*/
// export const xunjian_line = (data) =>
//   http.post(`${xunjian}/rest/checkController/myRouteList`, data);

// /**路线巡检进度(详情)*/
// export const line_progress = (data) =>
//   http.post(`${xunjian}/rest/checkController/routeDetails`, data);
// //巡检模板信息
// export const template = (data) =>
//   http.get(`${xunjian}/api/checkTemplate/details`, data);
// //单独巡检模板列表信息
// export const template_List = (data) =>
//   http.get(`${xunjian}/api/checkTemplate/list`, data);

//动态Url 需要对Url拼接的地址定义
//动态Url 需要对Url拼接的地址定义
const url = {
  activityDetails: `/activity/api/details`,
};

module.exports.url = url;
